#include <bits/stdc++.h>

using namespace std;
int lowbit(int n)
{
    if (n>=0)
    {
        return n&(-n);
    }else
    {
        return -1;
    }
}
int main_13()
{
    int num=45,cnt=0;
    while (num!=0)
    {
        num-=lowbit(num);
        ++cnt;
    }
    bitset<20> bin(45);
    printf("%d ones %d zeros\n",bin.count(),bin.size()-bin.count());
    printf("%s\n%d\n",bin.to_string().c_str(),cnt);
    int H[37];
    for (int k=0;k<36 ;++k )
    {
        H[(1<<k)%37]=k;
    }
    while (cin>>num)
    {
        while (num!=0)
        {
            cout << H[(num&(-num))%37] << " ";
            num-=lowbit(num);
        }
        cout << endl;
    }
    return 0;
}
